using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeresyManager.Talents.Hatreds
{
  [Serializable] public class HatredCult : Hatred
    {
        string cult;
        public override string Name
        {
            get
            {
                return "Hatred (Cult " + cult + ")";
            }
        }
        public HatredCult(string cult)
        {
            this.cult = cult;
        }

        // override object.Equals
        public override bool Equals(object obj)
        {
            return base.Equals(obj) && this.cult == (obj as HatredCult).cult;
        }

        // override object.GetHashCode
        public override int GetHashCode()
        {
            int prime = 31;
            int result = 1;
            result = prime
                    * result
                    + base.GetHashCode();
            result = prime
                    * result
                    + this.cult.GetHashCode();
            return result;
        }

    }
}
